package com.netkit;

import org.jboss.netty.channel.ChannelFuture;
import org.jboss.netty.channel.ChannelFutureListener;

public abstract class FutureListener implements ChannelFutureListener {
	private Session session;

	protected void setSession(Session session) {
		this.session = session;
	}

	public void operationComplete(ChannelFuture arg) throws Exception {
		onComplate(this.session);
	}

	public abstract void onComplate(Session paramSession);
}